<?php
namespace Rootadmin\Controller;
use Think\Controller;
class MoneyController extends AdminController {
    //充值记录
    public function money(){
        $count=M("shop_recharge_order")->count();
        $Page=new \Think\Page($count,10);
        $info=M("shop_recharge_order")->limit($Page->firstRow.','.$Page->listRows)->order("id desc")->select();
        foreach ($info as $key=>$value){
            $shop=M("shop")->where("id=".$value["shop_id"])->find();
            $info[$key]["linker"]=$shop["linker"];
            $info[$key]["phone"]=$shop["phone"];
        }
        $this->assign("pages",$Page->show());
        $this->assign("info",$info);
        $this->display();
    }
}